import request from "../utils/request"

export const getAllChannels=()=>{
    return request({
        method:"get",
        url:"/newuser/allchannels",       
    })
}
//添加用户频道
export const addUserChannel=(channel)=>{

    return request({
        method:"POST",
        url:"/newuser/addchannels", 
        data:channel   
    })
}

//删除用户指定频道
export const deleteUserChannel=(channelId,userId)=>{
    return request({
        method:"DELETE",
        url:"/newuser/removechannels", 
        data:{ channelId,userId  } 
    })
}

